package com.yuelife.user.dao;
import com.yuelife.user.pojo.User;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/****
 * @Author:admin
 * @Description:User的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface UserMapper extends Mapper<User> {

    /**
     * 根据名字查用户
     * @param name
     * @return
     */

     User findByName(String name);

    /**
     * 根据手机号查用户
     * @param telephone
     * @return
     */

    User findBytelephone(String telephone);

    /**
     * 根据名字和密码查用户
     * @param name
     * @param password
     * @return
     */
     User findByNameAndPassword(String name,String password);

    void updateHome(User user);
}
